package com.dz.finance.wechat.service;

import com.dz.finance.wechat.entity.AccessToken;
import com.dz.finance.wechat.entity.MpQrCodeCreateReq;
import com.dz.finance.wechat.entity.MpQrCodeCreateResp;

public interface WeChatService {

    /*
     * 获取access_token全局唯一接口调用凭据
     * */
    AccessToken getWeChatAccessToken(String appId, String appSecret);


    /*
    * 将access_token存入到缓存中去
    * */
    void setAccessTokenInCache(String appId,String appSecret);

    /*
    * 从缓存中获取access_token
    * */
    AccessToken getAccessTokenInCache(String appId);

    /*
     * 创建二维码
     * */
    MpQrCodeCreateResp createQrCode(String accessToken, MpQrCodeCreateReq mReq);
}
